<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@page import="com.lemurian.bankdata.lite.utils.GlobalFunction" %>

<div class="header"><span><span class="ico gray administrator"></span>Add Category</span>
</div><!-- End header -->	
<div class="content" >
	<s:form name="formBody" id="validation_demo">
	    <s:hidden name="start"/>
	    <s:hidden name="count"/>
	    <s:hidden name="orderBy"/>
	    <s:hidden name="ascDesc"/>
	    <s:hidden name="previousPage"/>
	    <s:hidden name="actionMethod" value="%{actionMethod}"/>
	    <s:hidden name="subaction"/>
	    <s:hidden name="id" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"/>
	    <s:token/>
	
		<!-- Third / Half column-->
		<div class="widgets">
		
		<div class="oneTwo">
			<div class="section ">
				<label><s:text name="label.parent"/><small>Induk dari Kategori</small></label>   
				<div style="width: 74%!importand"> 
					<s:select cssClass="validate[required] large chzn-select" list="parents" listKey="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}" listValue="name" name="parentId" headerKey="0" headerValue="Select below" disabled="%{readOnly}" tooltip="" value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(parentId)}"/>
				</div>
			</div>
		
			<div class="section ">
				<label><s:text name="label.name"/><small>Nama dari Kategori</small></label>   
				<div> 
				    <s:textfield cssClass="validate[required] text-input large" name="category.name"
	                            labelposition="left" maxlength="255" id="name" autocomplete="off"/>
				</div>
			</div>
			
			<div class="section last">
	            <div>
	            	<s:reset cssClass="uibutton special" value="RESET" cssStyle="width:100px"/>
	            	<s:submit action="%{actionMethod}" value="SUBMIT" cssClass="uibutton" cssStyle="width:100px"/> 
	           	</div>
	        </div>
		</div>
			
		<div class="oneTwo">
			
			<div class="section ">
				<label><s:text name="label.description"/><small>Deskripsi dari Kategori</small></label>   
				<div> 
				    <s:textfield cssClass="validate[required] text-input large" name="category.description"
	                            labelposition="left" maxlength="255" id="description" autocomplete="off"/>
				</div>
			</div>
		  
		</div>
		
		</div><!-- End Third / Half column-->
	
	</s:form>

   <!-- clear fix -->
<div class="clear"></div>

</div><!-- End content -->